#include<stdio.h>

//sizeof 计算表达式结果的类型长度或者某一种类型名的长度 单位是字节
int main() {
    printf("sizeof(char)=%d\n", sizeof(char));//1
    printf("sizeof(short)=%d\n", sizeof(short));//2
    printf("sizeof(int)=%d\n", sizeof(int));//4
    printf("sizeof(long)=%d\n", sizeof(long));
    printf("sizeof(long long)=%d\n", sizeof(long long));//8
    printf("sizeof(float)=%d\n", sizeof(float));//4
    printf("sizeof(double)=%d\n", sizeof(double));//8

    printf("sizeof('1')=%d\n", sizeof('1'));//1
    printf("sizeof(1)=%d\n", sizeof(1));//4
    printf("sizeof(1LL)=%d\n", sizeof(1LL));//8
    printf("sizeof(l.0)=%d\n", sizeof(1.0));//8
    printf("sizeof(1.0f)=%d\n", sizeof(1.0f));//4

    return 0;

}
